# -.- coding: utf-8 -.-

from django.utils.translation import ugettext as _
from app_planning.models import Planning

class PlanningMiddleware(object):
    def process_view(self, request, view_func, view_args, view_kwargs):
        try:
            request.Plannings=Planning.objects.all().order_by('-title')
        except:
            pass
        return
